package org.cycuchy.hp.data {
	import mx.formatters.Formatter;
	
	
	public class KapstelekData {
		
		private var _imgSrc:String;
		private var _beerName:String;
		private var _beerCountry:String;
		
		public function get imgSrc():String {
			return _imgSrc;
		}	
		
		public function set imgSrc(value:String):void {
			_imgSrc = value;
		}	
		
		public function get beerName():String {
			return _beerName;
		}	
		
		public function set beerName(value:String):void {
			_beerName = value;
		}	

		public function get beerCountry():String {
			return _beerCountry;
		}	
		
		public function set beerCountry(value:String):void {
			_beerCountry = value;
		}	
		
		private static const BN:String = "bn";
		private static const BC:String = "bc";
		private static const FORMAT:String = "Nazwa piwa: <b>" + BN + "</b><br/>Kraj produkcji: <b>" + BC + "<b/>";
		
		public function get toolTipValue():String {
			return FORMAT.replace(BN, _beerName).replace(BC, _beerCountry);
		}

	}
	
}